package com.example.gateway.designPattern.decorator;

/**
 * @ClassName: Drink
 * @Description:
 * @Author: YourName
 * @Date: 2024/12/31
 */

public abstract class Drink {
    public String description="";
    private float price=0f;

    public void setDescription(String description)
    {
        this.description=description;
    }

    public String getDescription()
    {
        return description+"-"+this.getPrice();
    }
    public float getPrice()
    {
        return price;
    }
    public void setPrice(float price)
    {
        this.price=price;
    }
    public abstract float cost();
}
